package com.kehutong.common.permission;

import java.util.Set;

/**
 * 用户登录信息
 *
 * @author wupengfei
 */
public class UserLoginInfo {
    // 用户id
    private String userId;

    // 用户名
    private String username;

    // 用户部门
    private Set<String> departmentNo;

    // 指定管理部门
    private Set<String> manageDepartmentNo;

    // 0:普通员工,1:上级
    private int identity;

    // 用户角色
    private Set<String> roles;

    private boolean allData;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Set<String> getDepartmentNo() {
        return departmentNo;
    }

    public void setDepartmentNo(Set<String> departmentNo) {
        this.departmentNo = departmentNo;
    }

    public Set<String> getManageDepartmentNo() {
        return manageDepartmentNo;
    }

    public void setManageDepartmentNo(Set<String> manageDepartmentNo) {
        this.manageDepartmentNo = manageDepartmentNo;
    }

    public int getIdentity() {
        return identity;
    }

    public void setIdentity(int identity) {
        this.identity = identity;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    public boolean isAllData() {
        return allData;
    }

    public void setAllData(boolean allData) {
        this.allData = allData;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
